<%@ page import="com.grouplay.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: YYW
  Date: 2020/6/9
  Time: 15:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%
    String name = "";
    if (session.getAttribute("user") == null){
        out.print("<h3>\n" +
                "    未登录\n" +
                "</h3>");
        return;
    } else {
        name = ((User) session.getAttribute("user")).getName();
    }
%>
<div class="col-xs-3">
    <h4>账户余额：<span id="balanceTip"></span></h4>
    <button class="btn btn-success">充值</button>
    <button class="btn btn-success">提现</button>
    <hr>
    <input type="text" placeholder="输入用户名" id="transferTargetName"/><br><br>
    <input type="number" placeholder="输入转账金额" id="transferMoney" step="0.01"/><br><br>
    <button class="btn btn-success" onclick="transfer()">转账</button>
</div>
<div class="col-xs-5" style="border-left: 1px solid black; border-right: 1px solid black; height: 600px;">
    <h2>待办事项</h2>
    <hr>
    <div id="unpaidBox">

    </div>
</div>
<div class="col-xs-4">
    <h2>历史记录</h2>
    <button class="btn btn-success" onclick="downloadMyBudget()">导出</button>
    <hr>
    <div>
        <table class="table">
            <thead>
            <tr>
                <th>转账用户</th>
                <th>金额（￥）</th>
                <th>时间</th>
                <th>备注</th>
            </tr>
            </thead>
            <tbody id="transferRecordTbody" style="font-size: 8pt;">

            </tbody>
        </table>
    </div>
</div>


